<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>添加</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="__LAYUI__/css/layui.css" media="all">
  <link rel="stylesheet" href="__STATIC__/plugs/font-awesome/css/font-awesome.min.css" media="all">

</head>
<body>
     <div class="layui-container" style="padding:2%">
        <form class="layui-form layui-clear" action="{:url('duty/execute/add')}" method="post">

    <div class="layui-form-item">
                <!--第一行-->
                <label class="layui-form-label">事件&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                <div class="layui-input-block">
                 <select class="eventId" name="eventId" lay-verify="required">
                            
                                <option value=""></option>
                                
                                {volist name="eventList" id="item"}
                                <option value="{$key}">{$item}</option>
                                {/volist}
                               
                        </select>
                </div>
            </div>
    <div class="layui-form-item">
                <!--第一行-->
                <label class="layui-form-label">预案&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                <div class="layui-input-block">
                 <select class="reservePlanId" name="reservePlanId" lay-verify="required">
                            
                                <option value=""></option>
                                
                                {volist name="planList" id="item"}
                                <option value="{$key}">{$item}</option>
                                {/volist}
                               
                        </select>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">救援类别&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                    <div class="layui-input-inline" style="width: 320px;">
                       <select class="typeId" name="typeId" lay-verify="required">
                            <option value="1">救灾</option>
                        </select>
                    </div>
                </div>

                <div class="layui-inline">
                    <label class="layui-form-label" style="width: 100px;">总耗时(天)&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                    <div class="layui-input-inline" style="width: 320px;">
                    <input type="text" name="timeConsuming" data-sets="timeConsuming" lay-verify="required" placeholder="0" autocomplete="off" class="layui-input" />
                    </div>
                </div>
            </div>


            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">指挥人&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                    <div class="layui-input-inline" style="width: 320px;">
                    <input type="text" name="execStaffId" data-sets="execStaffId"  placeholder="指挥人" autocomplete="off" class="layui-input" />
                    </div>
                    </div>

                <div class="layui-inline">
                    <label class="layui-form-label" style="width: 100px;">救援时间&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                    <div class="layui-input-inline" style="width: 320px;">
                    <input type="text" name="execTime" data-sets="execTime" lay-verify="required" id="execTime" autocomplete="off" class="layui-input" />
                    </div>
                </div>
            </div>


            <div class="layui-form-item layui-form-text">
                <div class="layui-inline">
                    <label class="layui-form-label">参与救援单位&nbsp;<i class="layui-icon arrow">　</i></label>
                    <div class="layui-input-block" style="width: 320px;height:128px;">
                        <textarea name="attendUnit" style="height:100%;" data-sets="attendUnit" class="layui-textarea" placeholder="请输入救援单位"></textarea>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">救援效果评估&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                    <div class="layui-input-block" style="width: 320px;height:128px;">
                        <textarea name="evaluate" style="height:100%;" lay-verify="required" data-sets="evaluate" class="layui-textarea" placeholder="请输入救援效果评估"></textarea>
                    </div>
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">记录人&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                    <div class="layui-input-inline" style="width: 320px;">
                 <select class="operationId" name="operationId" lay-verify="required">
                       <option value=""></option>
                               {volist name="userList" id="item"}
                                <option value="{$key}">{$item}</option>
                                {/volist}
                               
                        </select>
                    </div>
                    </div>

                <div class="layui-inline">
                    <label class="layui-form-label" style="width: 100px;">评估人&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                    <div class="layui-input-inline" style="width: 320px;">
                    <input type="text" name="evaluatePerson" data-sets="evaluatePerson" lay-verify="required" placeholder="评估人" autocomplete="off" class="layui-input" />
                    </div>
                </div>
            </div>
        

 <div class="layui-form-item">

            <div class="layui-inline">
                <label class="layui-form-label">文件&nbsp;<i class="layui-icon arrow">　</i></label>
                <div class="layui-input-inline" style="width:120px">
                     <button type="button" class="layui-btn" id="uploadfile" data-url="{:url('admin/api.upload/upload')}">上传文件</button>
                     <input class="layui-hide" type="text" name="filePath">
                </div>
            </div>
      </div>

    <div class="layui-form-item">
               
                <div class="layui-inline">
                    <div class="layui-input-block">
                         <button class="layui-btn" id="save" lay-submit lay-filter="save">保 存 </button>
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-block">
                        <button class="layui-btn layui-btn-normal" type="reset">重 置</button>
                    </div>
                </div>
            </div>
        </form>
    </div>  
    <script type="text/javascript" src="__LAYUI__/layui.js"></script>
    <script type="text/javascript" src="__JS__/duty/execute.js"></script>
       

</body>
</html>           
